﻿using AutoMapper;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using WMS.FC.Domain.DomainObject.System;

namespace WMS.FC.Domain.Service.System
{
    public class ServiceBase
    {
        protected readonly ILogger<ServiceBase> logger;
        protected readonly IOptions<WmsSettings> options;
        protected readonly IMapper mapper;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="logger">日志服务</param>
        /// <param name="options">WMS配置</param>
        /// <param name="mapper">映射服务</param>
        public ServiceBase(ILogger<ServiceBase> logger, IOptions<WmsSettings> options, IMapper mapper)
        {
            this.logger = logger;
            this.options = options;
            this.mapper = mapper;
        }
    }
}
